<template>
	<view class="page-content">
		<zm-page-navview title="私人定制" :isBack="false" :borderBottom="false" slot="top" />
		<view class="back-content">
			<view class="flex-content">
				<image class="logoV" src="/static/logo.png"></image>
				<view class="titleV">{{title}}</view>
				
				<button class="logoutBtn" type="primary" @click="clickLogtoutAccount">退出登录</button>
				<button class="testBtn" type="primary" @click="clickTestNode">zm-keyboard-number__Test</button>
				<button class="testBtn" type="primary" @click="clickTestNode">zm-verify-input__Test</button>
				<button class="testBtn" type="primary" @click="clickTestPage">zm-captcha-verification-view__Test</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				title: '欢迎来到私人订制小程序',
				count: 5,
				value: 2,
			}
		},
		onLoad(options) {

		},
		methods: {
			clickTestNode () {
				uni.navigateTo({
					url: "/pages/index/testNode"
				})
			},
			clickTestPage () {
				uni.navigateTo({
					url: "/pages/index/testPage"
				})
			},
			// 点击账号退出登录
			clickLogtoutAccount() {
				uni.reLaunch({
					url: "/uni_modules/zm-login-account/pages/login/auth"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page-content {
		width: 100vw;
		height: 100vh;
		background: #F5F9FC;

		.back-content {
			margin: 30rpx;
			padding: 30rpx;
			//  底部安全高度，顺序不要乱
			height: calc((100vh - constant(safe-area-inset-bottom)) - (88rpx + var(--status-bar-height)) - 60rpx);
			height: calc((100vh - env(safe-area-inset-bottom)) - (88rpx + var(--status-bar-height)) - 60rpx);
			border-radius: 20rpx;
			box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05);
			background: #FFFFFF;

			.flex-content {
				margin: 0rpx;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;

				.logoV {
					margin-top: 10vh;
					height: 200rpx;
					width: 200rpx;
				}

				.titleV {
					margin-top: 60rpx;
					font-size: 36rpx;
					color: #666666;
					text-align: center;
				}
				
				.logoutBtn {
					width: 100%;
					height: 88rpx;
					line-height: 88rpx;

					margin-top: 10vh;
					border-radius: 44rpx;
					background-image: linear-gradient(129deg, #FFE061 0%, #FFC723 100%);
					font-size: 36rpx;
					color: #1C1C1C;
				}
				
				.testBtn {
					width: 100%;
					height: 88rpx;
					line-height: 88rpx;
					
					margin-top: 20rpx;
					border-radius: 44rpx;
					background-image: linear-gradient(129deg, #FFE061 0%, #FFC723 100%);
					font-size: 36rpx;
					color: #1C1C1C;
				}

				.verifyBtn {
					width: 100%;
					height: 88rpx;
					line-height: 88rpx;
					margin-top: 30rpx;
					border-radius: 44rpx;
					font-size: 36rpx;
					color: #666666;
				}

				button::after {
					border: none;
				}
			}

		}

	}
</style>
